/*
 * Copyright (C) 2012 The Android Open Source Project 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 */

package com.example.google.tv.picasanotifier.model;

import android.os.Parcel;
import android.os.Parcelable;

public class PhotoData implements Parcelable {

    private String mPhotoTitle;

    private String mPhotoUrl;
    
    private String mPhotoFullUrl;

    private String mContentType;

    public PhotoData() {
    }

    public PhotoData(Parcel in) {
        mPhotoTitle = in.readString();
        mPhotoUrl = in.readString();
        mPhotoFullUrl= in.readString();
        mContentType = in.readString();
    }

    public void setPhotoTitle(String title) {
        this.mPhotoTitle = title;
    }

    public String getPhotoTitle() {
        return this.mPhotoTitle;
    }

    public void setPhotoUrl(String photoUrl) {
        this.mPhotoUrl = photoUrl;
    }
    
    public void setPhotoFullUrl(String photoUrl) {
        this.mPhotoFullUrl = photoUrl;
    }
    
    public String getPhotoFullUrl() {
        return this.mPhotoFullUrl;
    }

    public String getPhotoUrl() {
        return this.mPhotoUrl;
    }

    public void setContentType(String contentType) {
        this.mContentType = contentType;
    }

    public String getContentType() {
        return this.mContentType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mPhotoTitle);
        dest.writeString(mPhotoUrl);
        dest.writeString(mPhotoFullUrl);
        dest.writeString(mContentType);

    }

    @SuppressWarnings("rawtypes")
    public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {

        public PhotoData createFromParcel(Parcel in) {
            return new PhotoData(in);
        }

        public Object[] newArray(int arg0) {
            return null;
        }
    };

}
